<?php
html::printPath(html::createCrudPath('accomodationType', $accomodationType, 'code', 'code'));
$msg->printMessages();

$fb = new FormBuilder('accomodationType', $accomodationType);
$fb->text('code')->required()->readOnly(sql::isPersistent($accomodationType))->hint();
$fb->text('code_part')->maxLength(3)->required()->hint();
$fb->delimiter(text::get('application.firstTranslation'));
$fb->comboBox('language_code', $languageOptions)->required();
$fb->text('name')->required();
$fb->textarea('description')->required();
$fb->submitButton();
$fb->write();
?>
